import request from '@/utils/request'


export function accidentList(data) { //故障管理-列表
    return request({
        url: '/project-quality/api/accidentManagement/page',
        method: 'post',
        data
    })
}
export function accidentAdd(data) { //故障管理-添加
    return request({
        url: '/project-quality/api/accidentManagement/add',
        method: 'POST',
        data
    })
}
export function accidentEdit(data) { //故障管理-修改
    return request({
        url: '/project-quality/api/accidentManagement/edit',
        method: 'post',
        data
    })
}
export function accidentDetail(id) { //故障管理-单条查询
    return request({
        url: '/project-quality/api/accidentManagement/'+id,
        method: 'get',
    })
}
export function accidentDelete(id) { //故障管理-单条查询删除
    return request({
        url: '/project-quality/api/accidentManagement/del/'+id,
        method: 'get',
    })
}
export function accidentExportAll(data) { //故障管理-导出
    return request({
        url: '/project-quality/api/accidentManagement/export/word',
        responseType: 'arraybuffer',
        method: 'post',
        data,
    })
}




